package com.paw.quartz.jobs;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * @author lvzihai
 * @date 2021/8/11
 **/
@Slf4j
@Component
public class HelloJob extends QuartzJobBean {

  @Override
  protected void executeInternal (JobExecutionContext context) throws JobExecutionException {
    log.info("HelloJob "+System.currentTimeMillis());
  }
}
